
#include "geomSetup.h"

geomSetup::geomSetup()
{
    gl = new QGridLayout();
}

geomSetup::~geomSetup()
{
    delete gl;
}

void geomSetup::setMenu(QWidget *widget)
{
    if (widget->layout() != nullptr) {
        while (QLayoutItem *item = widget->layout()->takeAt(0)) {
            delete item->widget();
            delete item;
        }
        delete widget->layout();
    }
    widget->setLayout(gl);
}
